#!/home/lin/software/miniconda3/envs/th1.11/bin/python
# -*- coding: utf-8 -*-

import open3d as o3d
import numpy as np

print("Load a ply/pcd point cloud, print it, and reader it.")
pcd = o3d.io.read_point_cloud("../data/cloud_bin_0.pcd")
print(pcd, type(pcd))
print("---------")
print(np.asarray(pcd.points))

# 在GUI窗口按 h 键可以输出所有快捷键的列表
o3d.visualization.draw_geometries([pcd],
                                  zoom=0.3412,
                                  front=[0.4257, -0.2125, -0.8795],
                                  lookat=[2.6172, 2.0475, 1.532],
                                  up=[-0.0694, -0.9768, 0.2024])
